package com.bestcem.xm.award.controller.param.draw;

import com.bestcem.xm.award.controller.dto.WinDataDTO;
import com.bestcem.xm.award.controller.dto.draw.DrawAwardDTO;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 创建抽奖奖励请求参数
 *
 * @author hang.li <hang.li@idiaoyan.com>
 * @version v1.0
 * @date 2021/8/20 17:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CreateDrawAwardParam {

    @Valid
    @NotNull(message = "缺少奖励信息")
    @JsonProperty(value = "award")
    private DrawAwardDTO award;

    /**
     * 抽奖兑奖码数据
     */
    @JsonProperty(value = "win_data")
    private WinDataDTO winData;
}
